export enum UserAuthType {
  /**
   * 未授权
   */
  UNAUTH = 0,
  /**
   * 已授权
   */
  AUTHED = 1,
}

export enum KYCAuthType {
  /**
   * 未实名
   */
  UN_REALIZED = 0,
  /**
   * 已实名
   */
  REALIZED = 1,
  /**
   * 待审核
   */
  AUDIT = 2,
  /**
   * 审核通过
   */
  APPROVED = 3,
  /**
   * 被拒绝
   */
  REJECT = 4,
}

export enum BanAndAllowType {
  /**
   * 禁止使用
   */
  BAN = 0,
  /**
   * 允许使用
   */
  ALLOW = 1,
}

export interface UserInfoType {
  areaCode?: string;
  bindingWtcardAccount?: string;
  bindingWtcardAccountType?: string;
  bindingWtcardId?: number;
  isBindingWtcard?: 0 | 1;
  /**
   * 国家编码
   */
  countryCode?: string;
  /**
   * 货币编码
   */
  currency?: string;
  /**
   * 符号
   */
  symbol?: string;
  createTime?: number;
  customerServiceSite?: string;
  email?: string;
  emailAuth: UserAuthType;
  googleAuth: UserAuthType;
  imDomain?: string;
  imToken?: string;
  inviteCode?: string;
  kycAuth?: KYCAuthType;
  loginStatus?: BanAndAllowType;
  nickname?: string;
  phone?: string;
  phoneAuth: UserAuthType;
  realLevel?: number;
  status?: number;
  tradeStatus?: BanAndAllowType;
  uid?: number;
  username?: string;
  withdrawStatus?: BanAndAllowType;
  updateNicknameDate?: string;
  type?: 'email' | 'phone' | 'google';
  [x: string]: any;
}